using ConfClient;
using SvCore.Tcp;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Zpb;

public class WdOutfit : MonoBehaviour
{
    public Component PanelList;
    public WdOutfitLine OutfitLine;

    private Dictionary<EEquipType, WdOutfitLine> DictLine = new Dictionary<EEquipType, WdOutfitLine>();

    // Start is called before the first frame update
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {

    }
    public void WdShow()
    {
        this.Show();
        OutfitLine.Hide();

        ShowList();
    }
    public void ShowList()
    {
        PanelList.transform.DestroyChildren();
        DictLine.Clear();

        foreach (EEquipType item in Enum.GetValues(typeof(EEquipType)))
        {
            var obj = PanelList.InstAdd(OutfitLine);
            obj.Setup(item);
            DictLine[item] = obj;
        }
    }
    public void G2CEquipOutfit(MyPackage pack)
    {
        
    }
}
